home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Unix / Shells / zsh / Source / help / TRAP < prev    next >
Encoding:
Text File  |  1993-10-08  |  799 b   |  14 lines

  1.        TRAPxxx
  2.               If defined and non-null, this function will be exe-
  3.               cuted whenever the shell catches a  signal  SIGxxx,
  4.               where  xxx  is  a  signal name as specified for the
  5.               kill builtin (see below).  The signal  number  will
  6.               be  passed  as the first parameter to the function.
  7.               In addition, TRAPZERR is executed whenever  a  com-
  8.               mand  has a non-zero exit status, TRAPDEBUG is exe-
  9.               cuted after each command, and TRAPEXIT is  executed
  10.               when  the shell exits, or when the current function
  11.               exits if defined inside a function.  If a  function
  12.               of  this  form  is  defined and null, the shell and
  13.               processes spawned by it will ignore SIGxxx.
  14.